package com.barbeque.mall.service;

import com.barbeque.mall.bean.stat.RowsDTO;
import com.barbeque.mall.bean.stat.RowsGoods;
import com.barbeque.mall.bean.stat.RowsOrders;
import com.barbeque.mall.bean.stat.StatUser;
import com.barbeque.mall.mapper.StatMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author why
 * @since 2022/07/18 17:15
 */
@Service
public class StatServiceImpl implements StatService {
    @Autowired
    StatMapper statMapper;


    @Override
    public List<RowsDTO> selectStatUser() {
        List<RowsDTO> users = statMapper.selectStatUser();
        return users;
    }

    @Override
    public List<RowsOrders> selectStatOrder() {
        List<RowsOrders> goods = statMapper.selectStatOrder();
        return goods;
    }

    @Override
    public List<RowsGoods> selectStatGoods() {
        List<RowsGoods> goods = statMapper.selectStatGoods();
        return goods;
    }
}
